package com.xci.core.setting;

import com.xci.core.internal.Sys;
import lombok.Data;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * 系统配置类
 * @author 吕艳阳
 */
@Data
public class SysSetting {
    @Resource
    private ApiSetting api;
    @Resource
    private WebSetting web;
    @Resource
    private UploadSetting upload;
    @Resource
    private XssSetting xss;
    @Resource
    private SwaggerSetting swagger;
    @Resource
    private AppSetting app;

    @PostConstruct
    private void init() {
        Sys.setting(this);
    }
}
